package com.fengwk.user.dao;

import org.apache.ibatis.annotations.Param;

import com.fengwk.support.pndao.DaoGen;
import com.fengwk.user.face.entity.UsToken;

@DaoGen(sqlCols = UsToken.class)
public interface UsTokenDao {
    
	int insert(UsToken usToken);
	int deleteByRecordId(@Param("recordId") Long recordId);
	int updateByRecordId(UsToken usToken);
	UsToken findByChannelAndToken(@Param("channel") String channel, @Param("token") String token);
	UsToken findLastByChannelAndUserId(@Param("channel") String channel, @Param("userId") Long userId);
	
}